import java.util.Iterator;

public class SimpleIterator implements Iterator<Double> {
	private int i = 0;
	private int count;

	public SimpleIterator(int count) {
		this.count = count;
	}

	public boolean hasNext() {
		return i < count;
	}

	public Double next() {
		i++;
		return Math.random();
	}

	public void remove() {
		throw new UnsupportedOperationException();
	}

}
